package com.xingu.xg.vo;

import com.xingu.xg.valid.CopyNodeGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @param
 * @BelongsProject: xg-interview-java
 * @BelongsPackage: com.xingu.xg.vo
 * @author: L
 * @Date: 2024/5/15 23:42
 * @return
 */
@Data
public class CopyNodeQuery {
    @ApiModelProperty(value = "选中节点ID")
    @NotNull(groups = {CopyNodeGroup.class},message = "{selected.node.id.cannot.be.empty}")
    private String selectedId;

    @ApiModelProperty("复制的节点")
    @NotEmpty(groups = {CopyNodeGroup.class},message = "{copy.node.cannot.be.empty}")
    List<String> list;

}
